<!-- eslint-disable vue/multi-word-component-names -->
<template>
  <div class="header"> 
    
    <div class="title">后台通用系统</div>
    <div class="uname">{{ uname }}</div>
    
  </div>
</template>

<script>
// import { getToken } from '@/utils/setToken.js'
  export default {
    data() {
      return {
        uname:''
      }
    },
    created(){
      // this.uname = getToken('username')
      this.uname = localStorage.getItem('username')
    }
  }
</script>

<style lang="scss" scoped>
.header{
  
  height: 100px;
  padding:0  15px;
  background-color: #950c0c;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: azure;
  .title{
    width: 200px;
    font-weight: 800;
    font-size: 32px;
  }
  .uname{
    font-size: 25px;
  }
}
</style>